function isCursorOverArea ( x,y,w,h )
	if isCursorShowing () then
		local cursorPos = {getCursorPosition()}
		local mx, my = cursorPos[1]*screenWidth,cursorPos[2]*screenHeight
		if mx >= x and mx <= x+w and my >= y and my <= y+h then
			return true
		end
	end	
	return false
end

function getAbsoluteCursorPosition()
	local cx, cy = getCursorPosition()
	return cx*screenWidth,cy*screenHeight
end

function dxDrawCircle(posX, posY, radius, width, angleAmount, color, postGUI)
	radius = radius or 50
	width = width or 5
	angleAmount = angleAmount or 1
	color = color or tocolor(255, 255, 255, 200)
	postGUI = postGUI or false
 
	for i=0,360,angleAmount do
		local _i = i*(math.pi/180)
		dxDrawLine(math.cos(_i)*(radius-width)+posX, math.sin(_i)*(radius-width)+posY, math.cos(_i)*(radius+width)+posX, math.sin(_i)*(radius+width)+posY, color, width, postGUI)
	end
 
	return true
end

addCommandHandler("getcam",
	function(player)
		outputChatBox(table.concat({getCameraMatrix()},","))
	end
)

addCommandHandler("getpos",
	function(player)
		outputChatBox(table.concat({getElementPosition(localPlayer)},","))
	end
)